//
//  test.c
//  队列
//
//  Created by 仲7 on 2025/2/18.

#include"queue.h"
void QueueTest(void)
{
    queue q;
    QueueInit(&q);
    QueuePush(&q, 1);
    QueuePush(&q, 2);
    QueuePush(&q, 3);
    QueuePush(&q, 4);
    QueuePop(&q);
    printf("队头：%d\n",QueueFront(&q));
    printf("队尾：%d\n",QueueBack(&q));
    printf("Size:%d\n",QueueSize(&q));
    //销毁队列
    QueueDestroy(&q);
}
int main(int argc, const char * argv[]) {
    QueueTest();
    return 0;
}

